import { createApp } from 'vue';
import { createPinia } from 'pinia';

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import "@/tailwindcss.css";

import App from './App.vue'
import router from './router/index.js'

const app = createApp(App)

// 自动引入图标
Object.keys(ElementPlusIconsVue).forEach((key) => {
  app.component(key, ElementPlusIconsVue[key as keyof typeof ElementPlusIconsVue]);//添加类型断言
})

app.use(createPinia())
app.use(router)
app.use(ElementPlus)

app.mount('#app')
